home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol F-12
/
(Vol F-12) Jun 02 2012.iso
/
Screensaver
/
screensaver_installer.exe
/
____swmx
/
scripts
/
frame_1
/
DoAction_7.as
< prev
next >
Wrap
Text File
|
2004-10-21
|
2KB
|
38 lines
_global.ScreenweaverDialogs = function()
{
};
ScreenweaverDialogs.prototype.BrowseForFile = function(args, callback, scope)
{
swInterface.callMethod("browseForFile",args,callback,false,scope);
};
ScreenweaverDialogs.prototype.BrowseForFile_Open = function(name, filter, dir, title, callback, scope)
{
args = {filepath:path,filename:name,filefilter:filter,initdir:dir,title:title,multiplefiles:false,defaultext:"",save:false};
this.BrowseForFile(args,callback,scope);
};
ScreenweaverDialogs.prototype.BrowseForFiles_Open = function(name, filter, dir, title, callback, scope)
{
args = {filename:name,filefilter:filter,initdir:dir,title:title,multiplefiles:true,defaultext:"",save:false};
this.BrowseForFile(args,callback,scope);
};
ScreenweaverDialogs.prototype.BrowseForFile_Save = function(name, filter, dir, title, defex, callback, scope)
{
args = {filename:name,filefilter:filter,initdir:dir,title:title,defaultext:defex,multiplefiles:false,save:true};
this.BrowseForFile(args,callback,scope);
};
ScreenweaverDialogs.prototype.BrowseForFolder = function(title, callback, scope)
{
args = {title:title};
swInterface.callMethod("BrowseForFolder",args,callback,false,scope);
};
ScreenweaverDialogs.prototype.ChooseColor = function(initcolor, callback, scope)
{
args = {initcolor:initcolor};
swInterface.callMethod("ChooseColor",args,callback,false,scope);
};
ScreenweaverDialogs.prototype.ChooseFont = function(title, size, color, bold, italic, callback, scope)
{
args = {title:title,size:size,color:color,bold:bold,italic:italic};
swInterface.callMethod("ChooseFont",args,callback,false,scope);
};